<template>
  <view class="search">
    <!-- 左边 -->
    <view class="search-left" @click="upToSearchPage">
      <text>点我搜索</text>
    </view>
    <!-- 右边的搜索 -->
    <view class="search-right" @click="upToSearchPage">
      <uni-icons type="search"></uni-icons>
    </view>
  </view>
</template>

<script>
  export default {
    name:"my-search",
    data() {
      return {
        
      };
    },
    methods: {
      upToSearchPage() {
        this.$emit('myToSite')
      }
    }
  }
</script>

<style lang="scss">
.search {
  display: flex;
  padding: 0 30rpx 30rpx 30rpx;
  height: 60rpx;
  justify-content: space-evenly;
  .search-left {
    width: 74%;
    background-color: white;
    border-radius: 34px;
    padding-left: 20rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid gray;
    text {
      font-size: 12px;
      color: gray;
     
    }
  }
  .search-right {
    width: 10%;
    border-radius: 45%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>